import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 全局样式
import './assets/style/index.scss'
// element-plus 样式覆盖，需要放在element-plus样式导入之后
import './assets/style/elementPlus.scss'
// 自定义组件
import myComps from '@/components'
import myUI from '@/common-ui'
// 微服务
import microApp from '@micro-zoe/micro-app'
microApp.start()

const app = createApp(App)
app.use(myComps)
app.use(myUI)
app.use(createPinia())
app.use(ElementPlus, {
  locale: zhCn
})
app.use(router)

app.mount('#app')
